<template>
	<view class="home">
		<view class="nav">
			<view class="title">淄博鑫润担保</view>
			<view class="desc"> 服务淄博的政府性担保机构 </view>
		</view>
		<view class="main">
			<view class="box" v-for="(item,index) in workData" :key="item.name">
				<view :class="['content','content' + index]" @click="workClick(item)">
					<img :src="item.img"  alt="" width="81">
					<view class="desc"> {{item.name}} </view>
				</view>
			</view>
		</view>
		<view class="assistant">
			<view class="title"> AI助手 </view>
			<img class="imageAI" src="@/static/home/ai.png" alt="" width="91">
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				workData:Object.freeze([{
					name:'授权',
					img:require('@/static/home/shouquan.png')
				},{
					name:'签约',
					img:require('@/static/home/qianyue.png')
				},{
					name:'缴费',
					img:require('@/static/home/jiaofei.png')
				},{
					name:'开票',
					img:require('@/static/home/kaipiao.png')
				}])
			};
		},
		onLoad() {
		},
		methods:{
			workClick(){
				uni.$u.toast('正在开发中。。。')
			}
		}
	}
</script>

<style lang="scss">
@mixin _content {
	content: '';
	display: block;
	position: absolute;
	background: #E9E9E9; /* 边框颜色 */
}
.home{
	min-height: 100vh;
	background-color: #F5F5F5 ;
	.nav{
		width: 100%;
		padding: 80rpx 0 250rpx 0;
		background-image: url('@/static/home/bg.png');
		background-size: 100% 100%;
		color: #fff;
		text-align: center;
		.title{
			font-size: 58rpx;
			font-weight: bold;
		}
		.desc{
			margin-top: 15rpx;
			font-size: 38rpx;
		}
	}
	.main{
		width: 700rpx;
		margin: -150rpx auto 0 auto;
		border-radius: 25rpx;
		background-color: #fff;
		display: flex;
		justify-content: space-around;
		flex-wrap: wrap;
		box-sizing: border-box;
		.box{
			width: 350rpx;
			position: relative;
			padding: 50rpx 0;
			.content{
				display: flex;
				flex-direction: column;
				align-items: center;
				.desc{
					margin-top: 15rpx;
					font-weight: bold;
				}
			}
			.content0::after{ 
				@include _content
				top: 10%;
				right: 0;
				width: 2px; /* 控制边框长度 */
				height: 80%; /* 边框高度 */ 
			}
			.content1::after{
				@include _content
				bottom: 0;
				right: 10%;
				width: 80%; /* 控制边框长度 */
				height: 2px; /* 边框高度 */ 
			}
			.content2::after{
				@include _content
				top: 0;
				right: 10%;
				width: 80%; /* 控制边框长度 */
				height: 2px; /* 边框高度 */ 
			}
			.content3::after{
				@include _content
				bottom: 10%;
				left: 0;
				width: 2px; /* 控制边框长度 */
				height: 80%; /* 边框高度 */ 
			}
		}
	} 
	.assistant{
		position: relative;
		width: 700rpx;
		height: 200px;
		margin: 150rpx auto 0 auto;
		border-radius: 25rpx;
		background-color: #fff;
		padding: 35rpx 25rpx;
		box-sizing: border-box;
		.imageAI{
			position: absolute;
			right: 45rpx;
			top: -80rpx;
		}
	}
}
</style>
